<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>Index</title>
</head>
<body>
<script type="text/javascript" src="$.js"></script>
<script>
    web.c.login = true;
    require(['!this.js'], $$.load)
</script>
</body>
</html>

<!--TPL部分-->
<template data-name="this.htm">

    <div>
        index
        <a href="./login.html">{{time}}</a>
    </div>

</template>

<!--JS部分-->
<script type="text/javascript" data-name="this.js">

    require('../$res/js/common');


    module.exports = {
        template: require('!this.htm'),
        methods: {},
        loaded: function () {
            $$.m = {
                time: new Date().getTime()
            };
            weui.loading("加载中");

        },
        mounted: function () {

            setTimeout(function () {
                weui.loading().hide();
                weui.alert("alert");
            }, 2000)
        }
    };
</script>

